//
//  UIView+THLine.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (THLine)

@property (class,nonatomic) UIColor * defaultColor;

- (UIView *)kTopLine;

- (UIView *)kTopLineWithColor:(UIColor *)color;

- (UIView *)kBottomLine;

- (UIView *)kBottomLineWithColor:(UIColor *)color;

- (UIView *)kTopLineAt:(CGPoint)point;

- (UIView *)kBottomLineAt:(CGPoint)point;

- (UIView *)kAddTopLine:(CGFloat)left;

- (UIView *)kAddBottomLine:(CGFloat)left;

- (UIView *)kAddTopLineWithInsets:(UIEdgeInsets)insets;

- (UIView *)kAddBottomLineWithInsets:(UIEdgeInsets)insets;

- (UIView *)kAddLeftLineWithInsets:(UIEdgeInsets)insets;

/// topLine 忽略 insets的bottom
- (UIView *)kAddTopLineWithInsets:(UIEdgeInsets)insets color:(UIColor *)color;

/// bottomLine 忽略 insets的top
- (UIView *)kAddBottomLineWithInsets:(UIEdgeInsets)insets color:(UIColor *)color;

- (UIView *)kAddLeftLineWithInsets:(UIEdgeInsets)insets color:(UIColor *)color;

- (UIView *)kAddRightLineWithInsets:(UIEdgeInsets)insets color:(UIColor *)color;

- (UIView *)kAddRectWithEdge:(UIEdgeInsets)insets;

- (UIView *)kAddRectWithEdge:(UIEdgeInsets)insets radius:(CGFloat)radius;

- (UIView *)kAddTopLine:(CGFloat)left tag:(NSInteger)tag;

- (UIView *)kAddBottomLine:(CGFloat)left tag:(NSInteger)tag;

- (UIView *)kTopLine:(NSInteger)tag;

- (UIView *)kBottomLine:(NSInteger)tag;

- (UIView *)kTopLineWithLeft:(CGFloat)left color:(UIColor *)color;

- (UIView *)kBottomLineWithLeft:(CGFloat)left color:(UIColor *)color;

//#####################具体应用
/// 无间距1px线条
- (UIView *)kBottomLineWithGrayColor;

@end

NS_ASSUME_NONNULL_END
